/*
测试静态初始化块static使用方法
 */
public class TestStatic2 {
    static String company;
    static {
        System.out.println("类的初始化");
        company = "程序员";
        printCompany();
    }
    
    public  static void printCompany(){
        System.out.println(""+company);
    }
    
    public static void main(String[] args){
    
    }
}
